package com.pxst.sys.req;

import com.pxst.annotations.mybatits.Query;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CurrencyCreateRsp {

    @NotBlank(message = "币种名不能为空")
    @ApiModelProperty(value = "币种缩写",required = true)
    @Query
    private String currencyAbb;

    @NotNull(message = "此货币的最大小数位数不能为空")
    @ApiModelProperty(value = "此货币的最大小数位数.  主要影响表单验证及报表计算.")
    @Query
    private Integer decimalPlaces;

    @NotNull(message = "千分位转换不能为空")
    @ApiModelProperty(value = "千分位转换(若为 true, 代表系统默认采用 $1 来代表实际的 $1,000 数值)")
    @Query
    private Integer thousandConversion;

    @NotBlank(message = "真实货币转换不能为空")
    @ApiModelProperty(value = "真实货币转换(将此货币转换成通用货币)")
    @Query
    private String realConversion;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "数据表前缀")
    private String tablePrefix;

    @ApiModelProperty(value = "是否启用")
    private Integer isActive;
}
